<template>
  <div style="display:inline-block;width:160px">
    <el-row :gutter="12">
      <el-col :span="8">
        <label class="radio-label">文件类型:</label>
      </el-col>

      <el-col :span="4">
        <el-select v-model="bookType" style="width:80px;">
          <el-option v-for="item in options" :key="item" :label="item" :value="item" />
        </el-select>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  props: {
    value: {
      type: String,
      default: "xlsx",
    },
  },
  data() {
    return {
      options: ["xlsx", "csv", "txt"],
    };
  },
  computed: {
    bookType: {
      get() {
        return this.value;
      },
      set(val) {
        this.$emit("input", val);
      },
    },
  },
};
</script>
